import request from '@/utils/request'

// 获取用户信息
export const getUserInfo = (params?: any) => request.get('user/getUserInfo', params);

// 获取个人中心样式
export const userCenterStyle = (params?: any) => request.get('user/getCenterStyle', params);

// 修改手机号
export const updateMobile = (params?: any) => request.post('user/updateMobile', params);

// 修改密码
export const updatePassword = (params?: any) => request.post('user/updatePassword', params);

// 修改头像
export const updateAvatar = (params?: any) => request.post('user/updateAvatar', params);

// 修改昵称
export const updateNickname = (params?: any) => request.post('user/updateNickname', params);

// 修改邮箱
export const updateEmail = (params?: any) => request.post('user/updateEmail', params);

// 修改性别
export const updateSex = (params?: any) => request.post('user/updateSex', params);